home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / du_lib / menubar.c < prev    next >
C/C++ Source or Header  |  1995-07-10  |  591b  |  27 lines

  1. /*
  2.   DU_LIB v2
  3.   Gem Window Management & Dialog Library
  4. */
  5.  
  6. /*=================================
  7.    GEM drop-down Menu Bar Handlers
  8.   =================================*/
  9.  
  10. #include "dulib.h"
  11.  
  12. /*===================================
  13.    Activate/Install a pull-down menu
  14.   ===================================*/
  15. short install_menu(short m)
  16. {
  17.     short b;
  18.     OBJECT *menu_loc;
  19.     menu=m;
  20.     rsrc_gaddr(0,menu,&menu_loc);
  21.  
  22.     do { graf_mkstate(&junk,&junk,&b,&junk); } while (b);    // Don't call menu_bar() with the mouse button down or GEM crashes.
  23.  
  24.     menu_bar(menu_loc,1);
  25.     return 0;
  26. }
  27.